-- GENERATED SPELL FOR [Defias Pathstalker] --


function spell0_121(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_121', 593, 1)
end

function spell1_121(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_121', 8328, 1)
end

function Sorts_121(pUnit, Event)
local choix_sorts_121 = math.random(0, 1)
if choix_sorts_121 == 0 then
pUnit:RegisterEvent('spell0_121', 1, 1)
end
if choix_sorts_121 == 1 then
pUnit:RegisterEvent('spell1_121', 1, 1)
end
end

function mob121_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_121', math.random(1500, 3000), 1)
end

function mob121_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob121_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob121_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(121, 1, 'mob121_Action')
RegisterUnitEvent(121, 2, 'mob121_Leave')
RegisterUnitEvent(121, 3, 'mob121_Kill')
RegisterUnitEvent(121, 4, 'mob121_Die')
